#import "JuggleMergeView.h"


@implementation JuggleMergeView



- (void)setGritRadiate:(JuggleMergeModel *)gritRadiate {
	_gritRadiate = gritRadiate;

	//: 配置cell的UI

[self.mandalaKeyholeImageView sd_setImageWithURL:[NSURL URLWithString:gritRadiate.melodyKingdomDazzle.stringValue] placeholderImage:nil];



	self.elevateLabel.text = gritRadiate.keyholeIntrepidFusion;

}
//: self.zealotBtn 的点击事件
- (void)action_0 {}

//: 设置_mandalaKeyholeImageView的圆角
- (void)questXenial:(UIImageView *)hologramEchoesQuaint feast:(CGFloat)jelly {
	hologramEchoesQuaint.layer.cornerRadius = jelly;
	hologramEchoesQuaint.layer.masksToBounds = YES;
}

- (UIImageView *)mandalaKeyholeImageView {
	if (!_mandalaKeyholeImageView) {
	
        _mandalaKeyholeImageView = [UIImageView new];
        _mandalaKeyholeImageView.contentMode = UIViewContentModeScaleAspectFill;
        _mandalaKeyholeImageView.clipsToBounds = YES;
        //: UIImageView的骚操作 充数
        [self questXenial:_mandalaKeyholeImageView feast:12];
        _mandalaKeyholeImageView.size = CGSizeMake(101, 130);
        _mandalaKeyholeImageView.left = 35;
        _mandalaKeyholeImageView.top = 26;
        UIImage *yonder = [UIImage imageNamed:@"images/image_1.png"];
        if (yonder) {
	        _mandalaKeyholeImageView.image = yonder;
        }
	}
	return _mandalaKeyholeImageView;
}

//: _zipperJourneyButton 的点击事件
- (void)action_4 {}

- (UIButton *)zipperJourneyButton {
	if (!_zipperJourneyButton) {
	
        _zipperJourneyButton = [[UIButton alloc] initWithFrame:CGRectZero];
        _zipperJourneyButton.frame = CGRectMake(4, 19, 111, 197);
        UIImage *symphonyUndertow = [UIImage imageNamed:@"images/icon_4.png"];
        if (symphonyUndertow) {
	        [_zipperJourneyButton setImage:symphonyUndertow forState:UIControlStateNormal];
        }
        [_zipperJourneyButton setTitle:@"button_4" forState:UIControlStateNormal];
        [_zipperJourneyButton setTitle:@"button_selected_4" forState:UIControlStateSelected];
        [_zipperJourneyButton setTitleColor:[UIColor colorWithRed:170/255.0 green:32/255.0 blue:150/255.0 alpha:0.5] forState:UIControlStateNormal];
        [_zipperJourneyButton setTitleColor:[UIColor colorWithRed:100/255.0 green:210/255.0 blue:41/255.0 alpha:0.8] forState:UIControlStateSelected];
        [_zipperJourneyButton addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
	}
	return _zipperJourneyButton;
}

- (UIImageView *)radianceXenophobeBrightenImageView {
	if (!_radianceXenophobeBrightenImageView) {
	
        _radianceXenophobeBrightenImageView = [[UIImageView alloc] init];
        _radianceXenophobeBrightenImageView.contentMode = UIViewContentModeScaleAspectFill;
        _radianceXenophobeBrightenImageView.clipsToBounds = YES;
        _radianceXenophobeBrightenImageView.layer.cornerRadius = 4;
        _radianceXenophobeBrightenImageView.layer.masksToBounds = YES;
        UIImage *wonderPictureQuest = [UIImage imageNamed:@"images/image_5.png"];
        if (wonderPictureQuest) {
	        _radianceXenophobeBrightenImageView.image = wonderPictureQuest;
        }
	}
	return _radianceXenophobeBrightenImageView;
}

//: natural 的点击事件
- (void)action_6 {}

- (UILabel *)elevateLabel {
	if (!_elevateLabel) {
	
        _elevateLabel = [UILabel new];
        _elevateLabel.text = @"label_8";
        _elevateLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
        _elevateLabel.textColor = [UIColor colorWithRed:130/255.0 green:168/255.0 blue:3/255.0 alpha:0.8];
        _elevateLabel.textAlignment = NSTextAlignmentLeft;
        _elevateLabel.numberOfLines = 0;
	}
	return _elevateLabel;
}

- (void)radiantJuggleLayout {

    //: 描述_0
    self.zealotBtn = [[UIButton alloc] initWithFrame:CGRectZero];
    self.zealotBtn.size = CGSizeMake(40, 133);
    self.zealotBtn.left = 18;
    self.zealotBtn.top = 10;
    UIImage *serene = [UIImage imageNamed:@"images/icon_0.png"];
    if (serene) {
	    [self.zealotBtn setImage:serene forState:UIControlStateNormal];
    }
    [self.zealotBtn setTitle:@"button_0" forState:UIControlStateNormal];
    [self.zealotBtn setTitle:@"button_selected_0" forState:UIControlStateSelected];
    [self.zealotBtn setTitleColor:[UIColor colorWithRed:222/255.0 green:98/255.0 blue:134/255.0 alpha:0.6] forState:UIControlStateNormal];
    [self.zealotBtn setTitleColor:[UIColor colorWithRed:60/255.0 green:103/255.0 blue:213/255.0 alpha:1.0] forState:UIControlStateSelected];
    [self.zealotBtn addTarget:self action:@selector(action_0) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:self.zealotBtn];

	//: 描述_1
	[self addSubview:self.mandalaKeyholeImageView];


    //: 描述_2
    UIView *tranquility = [[UIView alloc] init];
    tranquility.size = CGSizeMake(83, 139);
    tranquility.left = 5;
    tranquility.top = 6;
    self.kaleidoscopeView = tranquility;
    [self addSubview:tranquility];


    //: 描述_3
    self.blossomHazeXenonTextView = [[UITextView alloc] initWithFrame:CGRectZero];
    self.blossomHazeXenonTextView.frame = CGRectMake(4, 14, 182, 58);
    [self addSubview:self.blossomHazeXenonTextView];

	//: 描述_4
	[self addSubview:self.zipperJourneyButton];

	//: 描述_5
	[self addSubview:self.radianceXenophobeBrightenImageView];
	[self.radianceXenophobeBrightenImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(165);
		make.height.mas_equalTo(92);
		make.bottom.equalTo(@(23));
	}];


    //: 描述_6
    UIButton *natural = [[UIButton alloc] init];
    UIImage *luminescenceJoyful = [UIImage imageNamed:@"images/icon_6.png"];
    if (luminescenceJoyful) {
	    [natural setImage:luminescenceJoyful forState:UIControlStateNormal];
    }
    [natural setTitle:@"button_6" forState:UIControlStateNormal];
    [natural setTitle:@"button_selected_6" forState:UIControlStateSelected];
    [natural setTitleColor:[UIColor colorWithRed:162/255.0 green:12/255.0 blue:127/255.0 alpha:0.8] forState:UIControlStateNormal];
    [natural setTitleColor:[UIColor colorWithRed:252/255.0 green:220/255.0 blue:106/255.0 alpha:0.7] forState:UIControlStateSelected];
    [natural addTarget:self action:@selector(action_6) forControlEvents:UIControlEventTouchUpInside];
    self.abandonMergePioneerBtn = natural;
    [self addSubview:natural];
	[self.abandonMergePioneerBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(189);
		make.height.mas_equalTo(167);
		make.top.equalTo(@(25));
		make.bottom.equalTo(@(26));
	}];


    //: 描述_7
    self.prismAmazingTextView = [UITextView new];
    [self addSubview:self.prismAmazingTextView];
	[self.prismAmazingTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(147);
		make.height.mas_equalTo(58);
		make.top.equalTo(@(18));
		make.bottom.equalTo(@(28));
	}];

	//: 描述_8
	[self addSubview:self.elevateLabel];
	[self.elevateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(54);
		make.height.mas_equalTo(180);
	}];
}


@end